<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page errorPage="../error/404.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<title>编辑个人信息</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <script type="text/javascript" src="/js/common.js"></script>   
     <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script> 
     <script type="text/javascript" src="/js/jquery.min.js"></script>  
   <script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/kindeditor-all-min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/lang/zh_CN.js"></script>

<style type="text/css">
.layui-form-item .layui-inline {
	width: 33.333%;
	float: left;
	margin-right: 0;
}

@media ( max-width :1240px) {
	.layui-form-item .layui-inline {
		width: 100%;
		float: none;
	}
}
</style>
</head>
<body class="childrenBody">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend style="text-align: center">${admin.realname}博客</legend>
</fieldset>
	<form class="layui-form" style="width: 80%;" id="personinfo" >
		<!-- 管理员id -->
		<input type="hidden" name="id" value="${person.id}" id="id"/>
		<div class="layui-form-item">
			<label class="layui-form-label">姓名</label>
			<div class="layui-input-block">
				<input type="text" name="name" id="name" class="layui-input userName"
					lay-verify="required" placeholder="请输入姓名" value="${person.name}">
			</div>
			</div>
		
		<div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">头像:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test3" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                           <input type="text" name="avatar" id="avatar" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" >
                                            <img alt="" src="?" name="showimg" id="showimg" style="width:100px;height:100px;">
                                             <img alt="" src="${person.avatar}" style="width:100px;height:100px;">
                                </div>
                        
                            </div>
    </div>
    
			<div class="layui-form-item">
			<label class="layui-form-label">个人简介</label>
			<div class="layui-input-block">
				             <textarea placeholder="请输入个人简介" class="layui-textarea" name="description" id="description" lay-verify="required">${person.description}</textarea>

			</div>
		</div>
		
			<div class="layui-form-item">
			<label class="layui-form-label">个人事迹</label>
			<div class="layui-input-block">
				             <textarea placeholder="请输入个人事迹" class="layui-textarea" name="occupation" id="occupation" lay-verify="required">${person.occupation}</textarea>

			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">内心独白</label>
			<div class="layui-input-block">
				<textarea style="width:800px;height:300px;" name="content" id="content" >${person.content}</textarea>
				
			</div>
		</div>
		
		
		<div class="layui-form-item">
			<label class="layui-form-label">模板</label>
			<div class="layui-input-block">
				<input type="text" name="indexpage" id="indexpage" class="layui-input userName"
					lay-verify="required" placeholder="请输入模板" value="${person.indexpage}">
			</div>
			</div>
			
			<div class="layui-form-item">
			<label class="layui-form-label">下载地址</label>
			<div class="layui-input-block">
				<input type="text" name="indexdownloadurl" id="indexdownloadurl" class="layui-input userName"
					lay-verify="required" placeholder="请输入下载地址" value="${person.indexdownloadurl}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">主页链接</label>
			<div class="layui-input-block">
				<input type="text" name="indexpageurl" id="indexpageurl" class="layui-input userName"
					lay-verify="required" placeholder="请输入主页链接" value="${person.indexpageurl}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">网站程序语言</label>
			<div class="layui-input-block">
				<input type="text" name="myprogremlange" id="myprogremlange" class="layui-input userName"
					lay-verify="required" placeholder="请输入网站程序语言" value="${person.myprogremlange}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">网站程序下载地址</label>
			<div class="layui-input-block">
				<input type="text" name="myprogremurl" id="myprogremurl" class="layui-input userName"
					lay-verify="required" placeholder="请输入网站程序下载地址" value="${person.myprogremurl}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">服务器商家</label>
			<div class="layui-input-block">
				<input type="text" name="servervender" id="servervender" class="layui-input userName"
					lay-verify="required" placeholder="请输入服务器商家" value="${person.servervender}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">服务器推广链接</label>
			<div class="layui-input-block">
				<input type="text" name="servervenderurl" id="servervenderurl" class="layui-input userName"
					lay-verify="required" placeholder="请输入服务器推广链接" value="${person.servervenderurl}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">免费云空间</label>
			<div class="layui-input-block">
				<input type="text" name="freecloudspace" id="freecloudspace" class="layui-input userName"
					lay-verify="required" placeholder="请输入免费云空间" value="${person.freecloudspace}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">免费云空间链接</label>
			<div class="layui-input-block">
				<input type="text" name="freecloudspacedes" id="freecloudspacedes" class="layui-input userName"
					lay-verify="required" placeholder="请输入免费云空间链接" value="${person.freecloudspacedes}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">QQ群号1</label>
			<div class="layui-input-block">
				<input type="text" name="imagefirstqq" id="imagefirstqq" class="layui-input userName"
					lay-verify="required" placeholder="请输入QQ群号1" value="${person.imagefirstqq}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">QQ群号2</label>
			<div class="layui-input-block">
				<input type="text" name="imagetwothqq" id="imagetwothqq" class="layui-input userName"
					lay-verify="required" placeholder="请输入QQ群号2" value="${person.imagetwothqq}">
			</div>
			</div>
			<div class="layui-form-item">
			<label class="layui-form-label">微信群号</label>
			<div class="layui-input-block">
				<input type="text" name="imagethirthwechat" id="imagethirthwechat" class="layui-input userName"
					lay-verify="required" placeholder="请输入微信群号" value="${person.imagethirthwechat}">
			</div>
			</div>
			
			
			<div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">java交流群1:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test4" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                           <input type="text" name="imagefirst" id="imagefirst" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" >
                                            <img alt="" src="?" name="showimg1" id="showimg1" style="width:100px;height:100px;">
                                             <img alt="" src="${person.imagefirst}" style="width:100px;height:100px;">
                                </div>
                        
                            </div>
    </div>
    
    <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">java交流群2:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test5" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                           <input type="text" name="imagetwoth" id="imagetwoth" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" >
                                            <img alt="" src="?" name="showimg2" id="showimg2" style="width:100px;height:100px;">
                                             <img alt="" src="${person.imagetwoth}" style="width:100px;height:100px;">
                                </div>
                        
                            </div>
    </div>
    
    <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">微信公众号:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test6" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                           <input type="text" name="imagethirth" id="imagethirth" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" >
                                            <img alt="" src="?" name="showimg3" id="showimg3" style="width:100px;height:100px;">
                                             <img alt="" src="${person.imagethirth}" style="width:100px;height:100px;">
                                </div>
                        
                            </div>
    </div>
    
    <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">微信群:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test7" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                           <input type="text" name="imagefourth" id="imagefourth" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" >
                                            <img alt="" src="?" name="showimg4" id="showimg4" style="width:100px;height:100px;">
                                             <img alt="" src="${person.imagefourth}" style="width:100px;height:100px;">
                                </div>
                        
                            </div>
    </div>
			
			
			
			
			
			
			
			<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="updPersonInfo">立即保存</button>
			</div>
		</div>
	</form>
	<script type="text/javascript" src="/layui/layui.js"></script>
	<script type="text/javascript" src="/js/PersonInfo/EditPersonInfo.js"></script>
</body>
</html>